package com.qqs.distributed.annotation;

import java.util.concurrent.TimeUnit;

public class DistributedCacheProperties {
    private boolean enableBloom = false;
    private long ttl = -1;
    private TimeUnit timeUnit = TimeUnit.MILLISECONDS;
    private long lockTtl = 10000;
    private TimeUnit lockTimeUnit = TimeUnit.MILLISECONDS;

    public boolean isEnableBloom() {
        return enableBloom;
    }

    public void setEnableBloom(boolean enableBloom) {
        this.enableBloom = enableBloom;
    }

    public long getTtl() {
        return ttl;
    }

    public void setTtl(long ttl) {
        this.ttl = ttl;
    }

    public TimeUnit getTimeUnit() {
        return timeUnit;
    }

    public void setTimeUnit(TimeUnit timeUnit) {
        this.timeUnit = timeUnit;
    }

    public long getLockTtl() {
        return lockTtl;
    }

    public void setLockTtl(long lockTtl) {
        this.lockTtl = lockTtl;
    }

    public TimeUnit getLockTimeUnit() {
        return lockTimeUnit;
    }

    public void setLockTimeUnit(TimeUnit lockTimeUnit) {
        this.lockTimeUnit = lockTimeUnit;
    }
}
